<div>
    <a class="edit" href="javascript:void(0)" datafld="<?php echo $post['id']; ?>"> Sửa</a></div>
<div class="popup_des">
        <?php echo $post['content']; ?>
    </div>

<script type="text/javascript">
    $(document).ready(function(){
        $('.ui-dialog-title').html('<?php echo $post['name'] ?>');
        jQuery('.edit').click(function(){
            jQuery('#myDialog').dialog('close');
            var datafld = jQuery(this).attr('datafld');
            jQuery.ajax({
                type: "post",
                dataType: "html",
                url: "<?php echo base_url('cp/post/edit'); ?>/"+datafld,
                data: "",
                success: function(data){
                    jQuery('#submitDialog').html(data);
                    jQuery('#submitDialog').dialog('open');
                    return false;
                }
            });
        });
    });
</script>